package noppes.vc.client.gui;

import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiButton;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

@SideOnly(Side.CLIENT)
class GuiBook$NextPageButton extends GuiButton {
   private final boolean isForward;
   private static final String __OBFID = "CL_00000745";

   public GuiBook$NextPageButton(int par1, int par2, int par3, boolean par4) {
      super(par1, par2, par3, 23, 13, "");
      this.isForward = par4;
   }

   public void drawButton(Minecraft p_146112_1_, int p_146112_2_, int p_146112_3_) {
      if (this.visible) {
         boolean flag = p_146112_2_ >= this.x && p_146112_3_ >= this.y && p_146112_2_ < this.x + this.width && p_146112_3_ < this.y + this.height;
         GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
         p_146112_1_.getTextureManager().bindTexture(GuiBook.access$000());
         int k = 0;
         int l = 192;
         if (flag) {
            k += 23;
         }

         if (!this.isForward) {
            l += 13;
         }

         this.drawTexturedModalRect(this.x, this.y, k, l, 23, 13);
      }

   }
}
